import request from '@/utils/request'

export function login(data) {
  return request({
    url: data.loginType == '2' ? '/user/loginByManager' : '/user/loginByUser',
    method: 'post',
    data
  })
}
